package Qq;

public class QQOnlie {
    String no;
    String nickname;
    int sun = 0 , star = 0 , guan = 0;
    int days; //登入时长

    public void show() {
        System.out.println("账号是:" + no + ",昵称" + nickname);
        lever();
    }

    public void online(){   //在线天数
        days++;
    }

    public void lever() {       //判断等级
        guan = days / (100 * 3 * 3 * 3);
        sun = (days - 100 * 3 * 3 * 3) / (100 * 3);
        star = days % 300 / 100;
        System.out.println();
        if (guan > 0) {
            System.out.println("有几个皇冠:" + guan );
        }
        if (sun > 0) {
            System.out.println("有几个太阳:" + sun );
        }
        if (star > 0) {
            System.out.println("有几个星星:" + star );
        }
    }

}
